package cn.haoxsf.app.common.api.enums;

import lombok.Getter;

/**
 * @program: rest
 * @description: 图片异常枚举
 * @author: Ele qvbanfm@qq.com
 * @create: 2019-10-22 15:17
 **/
@Getter
public enum SettledInExceptionEnum implements IServiceEnum {
    PHONE_NUMBER_ALREADY_EXISTS(40,"电话号已存在"),
    USER_ALREADY_EXISTS(41,"用户已申请"),
    STORE_ALREADY_EXISTS(42,"用户已申请门店")
    ;
    private Integer code;
    private String msg;

    SettledInExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
}
